using System;
using System.Collections.Generic;
using System.Text;
using WozLib.WozObjects;
using WOzTestUI.WozObjects;

namespace WOzTestUI
{
  public class AudioToPlay : AudioPrompt
  {

    public AudioToPlay(string filename)
      : base(filename)
    {
    }

    public override ServerObject GetServerObject()
    {
      return new AudioToPlayServerObject(this.ServerID);
    }

    public static IServerObject FromAudioToPlayServerObject(AudioToPlayServerObject audioToPlayServerObject)
    {
      AudioToPlay ata = new AudioToPlay(audioToPlayServerObject.Data);
      ata.ServerID = audioToPlayServerObject.ServerID;
      ServerObjectRegistry.RegisterObjectWithExisitingId(ata);
      return ata;
    }
  }
}
